<script>
import { h, defineComponent } from 'vue'

export default defineComponent({
  name: 'Redirect',
  created() {
    const { params, query } = this.$route
    const { path } = params
    this.$router.replace({ path: '/' + path, query })
  },
  render: function() {
    return h()
  }
})
</script>
<script setup>
console.log('redirect')
</script>
